﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>写篇博客</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link href="/static/common/editor/css/editormd.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/css/myCss.css">
    <script type="text/javascript" src="/static/js/jquery3.4.0.js"></script>
    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <script type="text/javascript" src="/static/common/editor/editormd.min.js"></script>
    <script src="/static/common/editor/lib/marked.min.js"></script>
    <script src="/static/common/editor/lib/prettify.min.js"></script>
</head>

<body>
<script type="text/javascript">
    layui.use('form', function () {
        var form = layui.form;
        form.render();

    });
</script>
<form class="layui-form" action="perform/G_productadd_do.html" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label">
            类别</label>
        <div class="layui-input-block">
            <!--            <select name="txtG_Type" lay-verify='required'>-->
            <!--                <option value="">请选择类别</option>-->
            <!--                <option value="1">类型1</option>-->
            <!--            </select>-->
            <select name="typ" lay-filter="selFilter" lay-verify="" id="blog_category">
                <option value="1">技术</option>
                <option value="2">生活</option>
                <option value="3">人物</option>
                <option value="4">随谈</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            博客标题</label>
        <div class="layui-input-block">
            <input type="text" name="txtG_Name" id="blog_title" value="" lay-verify='required'
                   placeholder="请输入博客标题" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">
            博客标签</label>
        <div class="layui-input-block">
            <input type="text" name="txtG_material" id="blog_label" value="" lay-verify='required'
                   placeholder="请输入标签 , 号隔开" class="layui-input">
        </div>
    </div>
    <!--    <div class="layui-form-item" id="imgdiv">-->
    <!--        <label class="layui-form-label">公告图片</label>-->
    <!--        <button type="button" class="layui-btn" id="noticeImg" style="float:left;">-->
    <!--            <i class="layui-icon">&#xe67c;</i>上传图片-->
    <!--        </button>-->
    <!--        <img src="" alt="" id="showimg">-->
    <!--        <span id="notice_img_span" style="font-size: 1px"></span>-->
    <!--    </div>-->
    <div class="layui-form-item">
        <label class="layui-form-label">
            博客配图</label>
        <div class="layui-upload">
            <button type="button" class="layui-btn" id="imgupload">上传图片</button>
            <div class="layui-upload-list">
                <img class="layui-upload-img" id="demo1">
                <p id="demoText" id="blog_img"></p>
            </div>
        </div>
    </div>
    <!--         editor-->
    <div class="layui-form-item">
        <div id="content-editormd" class="form-group">
            <textarea style="" class="form-control" id="content-editormd-markdown-doc"
                      name="content-editormd-markdown-doc"></textarea>
        </div>
    </div>
    <!--editor  end-->
    <div class="layui-form-item">
        <label class="layui-form-label">
            允许评论</label>
        <div class="layui-input-inline">
            <input type="checkbox" name="allowed" checked="checked" lay-skin="switch" title="是否允许评论">
        </div>
        <div class="layui-form-mid layui-word-aux">
            是否允许评论
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="" name="mybtn">
                立即添加
            </button>
            <button type="reset" class="layui-btn layui-btn-primary">
                重置
            </button>
        </div>
    </div>
</form>
<script type="text/javascript" src="/static/js/blog/blogAdd.js"></script>
</body>
</html>
